import { createStore } from 'vuex'
import VuexPersistence from 'vuex-persistedstate'



export default createStore({

  state: {
    datas: null,
    arr1: [],
    arr2: []
  },
  getters: {
  },
  mutations: {
    setPrint(state, all) {
      state.datas = all
      console.log(state.datas);
    },
    setPrint1(state, all) {
      state.arr1 = all
      console.log('vuex',state.arr1);
      console.log(state.arr1);
    },
    setPrint2(state, all) {
      state.arr2 = all
      console.log('vuex',state.arr2);
      console.log(state.arr2);
    },
  },

  actions: {

  },
  modules: {
  },
  plugins: [VuexPersistence()]
})
